package com.thwj.project.biz.enums;

/***
 * 账户出入类型
 */
public enum AccountInoutStatusEnum {

    /***
     * 提现审核中 或者报名后活动结束 1天后到账
     */
    auditing(1,"处理中"),
    /**
     * 审核失败后未到账
     */
    un_Received(2,"取消到账"),
    Received(3,"已到账"),
    ;
    AccountInoutStatusEnum(int value, String name){
        this.name = name;
        this.value = value;
    }

    private int value;
    private String name;

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static AccountInoutStatusEnum getEnumByValue(Integer value){
        for (AccountInoutStatusEnum typeEnum : AccountInoutStatusEnum.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        return null;
    }
}
